package o;

import android.os.RemoteException;
import com.huawei.hmf.orb.aidl.communicate.DataBuffer;
import o.ffw.e;

public class fgq extends e {
    private fgs ˊ;

    public fgq() {
        this.ˊ = null;
        this.ˊ = fgs.ˎ();
    }

    public void ˋ(DataBuffer dataBuffer) throws RemoteException {
        ˊ(dataBuffer, new fgy());
    }

    public void ॱ(DataBuffer dataBuffer, ffu o_ffu) throws RemoteException {
        ˊ(dataBuffer, new fgv(o_ffu));
    }

    private void ˊ(DataBuffer dataBuffer, fgv o_fgv) throws RemoteException {
        if (dataBuffer != null) {
            o_fgv.ˊ(dataBuffer.ˋ());
            fgo ˏ = this.ˊ.ˏ(dataBuffer.ˋ, true);
            if (ˏ != null) {
                fib ˊ = fgu.ˊ(dataBuffer.ˋ());
                if (dataBuffer.ˏ != null) {
                    ˏ.ˊ = new fgr(fgx.from(ˊ, dataBuffer.ˏ));
                }
                ffc ˎ = ˏ.ˎ();
                if (dataBuffer.ˏ() > 0) {
                    ˊ.ˏ(dataBuffer.ˊ(), ˎ);
                }
                o_fgv.ˊ(dataBuffer.ˋ);
                ˏ.ˎ = o_fgv;
                try {
                    ˊ(ˏ, ˎ);
                    ˏ.ˊ(ˎ);
                    return;
                } catch (Exception e) {
                    o_fgv.ˏ(207135001);
                    return;
                }
            }
            o_fgv.ˏ(207135002);
        }
    }

    protected void ˊ(fgo o_fgo, ffc o_ffc) {
    }
}
